/*
 * @Author: chen haoxuan
 * @Date: 2021-06-13 23:30:22
 * @LastEditTime: 2021-06-13 23:43:25
 */
#include<iostream>
using namespace std;
class Point
{
  public:
   ~Point(){cout<<"executing Point destructor"<<endl;}
};
class Circle:public Point
{
  public:
    Circle(int=0){}
    ~Circle(){cout<<"executing Circle destructor"<<endl;}
  private:
    int radus;
};
int main()
{
  Point *p=new Circle;
  Circle grad1;
  Circle *c=&grad1;
  delete p;
  system("pause");
  return 0;
}